//
//  MyCollectionViewCell.m
//  14-homework-liwushuo
//
//  Created by 王道林 on 16/8/2.
//  Copyright © 2016年 王道林. All rights reserved.
//

#import "MyCollectionViewCell.h"

@implementation MyCollectionViewCell


- (instancetype)initWithFrame:(CGRect)frame
{
   self = [super initWithFrame:frame];
    if (self) {
        [self createSubView];
        
    }
    return self;
}

- (void)createSubView
{
    _iamgeview = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"3"]];
    [self.contentView addSubview:_iamgeview];
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    [super applyLayoutAttributes:layoutAttributes];
    _iamgeview.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
}

@end
